package com.taobao.api.extra.model;

import java.util.Date;

/**
 * 调用 taobao.salestats.get 时（按交易时间统计），需要传入的参数。
 * 
 * @author ruowang
 * 
 */
public class TradeStatsGetRequest {
	private String  fields;                     //返回字段
	private String 	nick;		                //用户昵称
	private String  orderBy; 					//查询方式
	private Date 	startCreated;				//开始时间
	private Date 	endCreated;					//结束时间
	private int 	pageNo;						//页面
	private int 	pageSize;					//每页条数
	
	public String getFields() {
		return fields;
	}
	
	public void setFields(String fields) {
		this.fields = fields;
	}
	
	public String getNick() {
		return nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}
	
	public String getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}
	
	public Date getStartCreated() {
		return startCreated;
	}

	public void setStartCreated(Date startCreated) {
		this.startCreated = startCreated;
	}
	
	public Date getEndCreated() {
		return endCreated;
	}

	public void setEndCreated(Date endCreated) {
		this.endCreated = endCreated;
	}

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}
	
	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	
	public TradeStatsGetRequest withFields(String fields) {
		setFields(fields);
		return this;
	}
	
	public TradeStatsGetRequest withNick(String nick) {
		setNick(nick);
		return this;
	}
	
	public TradeStatsGetRequest withOrderBy(String orderBy) {
		setOrderBy(orderBy);
		return this;
	}
	
	public TradeStatsGetRequest withStartCreated(Date startCreated) {
		setStartCreated(startCreated);
		return this;
	}
	
	public TradeStatsGetRequest withEndCreated(Date endCreated) {
		setEndCreated(endCreated);
		return this;
	}
	
	public TradeStatsGetRequest withPageNo(int pageNo) {
		setPageNo(pageNo);
		return this;
	}
	
	public TradeStatsGetRequest withPageSize(int pageSize) {
		setPageSize(pageSize);
		return this;
	}
	
}
